package trlygjj.tanruiliyigenjinjin.mapper;

import trlygjj.tanruiliyigenjinjin.domain.LeaveStudent;
import trlygjj.tanruiliyigenjinjin.query.QueryObject;

import java.util.List;

public interface LeaveStudentMapper {

    int insert(LeaveStudent record);

    LeaveStudent selectByPrimaryKey(Long id);

    List<LeaveStudent> selectAll();


    int queryForCount(QueryObject qo);

    List<LeaveStudent> queryForList(QueryObject qo);

    /**
     * 审核
     * @param leaveStudent
     */
    void updateLeaveStudentState(LeaveStudent leaveStudent);

    /**
     * 根据正式学员的id查不出流失学员
     *
     * @return
     */
    LeaveStudent selectLeaveStudentByProfessionalStuentId(Long professionalStuentId);
}